﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using PresentationWpf.DB;

namespace PresentationWpf
{
    /// <summary>
    /// Interaction logic for SalvareInDB.xaml
    /// </summary>
    public partial class SalvareInDB : Window
    {
        Arbore.Arbore ar;
        public SalvareInDB(ref Arbore.Arbore arb)
        {
            ar = arb;
            InitializeComponent();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {

        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            PopulateDB p = new PopulateDB();
            p.Populate(ref ar, textBox1.Text);
            this.Close();
        }
    }
}
